package com.itheima.service;

import com.itheima.domain.EmpQueryParam;
import com.itheima.domain.LoginInfo;
import com.itheima.domain.PageResult;
import com.itheima.domain.pojo.Emp;

import java.time.LocalDate;
import java.util.List;
import java.util.Map;

public interface EmpService {

    //分页查询
//    PageResult<Emp> page(Integer page, Integer pageSize);

    //分页条件查询
    //PageResult<Emp> page(Integer page, Integer pageSize, String name, Integer gender, LocalDate begin, LocalDate end);

    //分页条件查询程序优化-参数封装
    PageResult<Emp> page(EmpQueryParam queryParam);

    void save(Emp emp) throws Exception;

    void delete(List<Integer> ids);

    Emp getById(Integer id);

    void update(Emp emp);

    LoginInfo login(Map<String, Object> loginInfoMap);
}
